package tankgame;

import javax.swing.*;

/**
 * @description:
 * @Author yyp
 * @time 2022/3/28
 */
public class TankGame01 extends JFrame {
    MyPanel myPanel = null;
    public static void main(String[] args) {
        TankGame01 tankGame01 = new TankGame01();
    }

    public TankGame01(){
        myPanel = new MyPanel();
        this.add(myPanel);
        this.setSize(1000,750);
        this.addKeyListener(myPanel);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }

}
